[IA64] Don't scrub pages when on SN2 simulator
authorAlex Williamson <alex.williamson@hp.com>
Thu, 24 May 2007 20:20:19 +0000 (14:20 -0600)
committerAlex Williamson <alex.williamson@hp.com>
Thu, 24 May 2007 20:20:19 +0000 (14:20 -0600)
Small patch to not call scrub_heap_pages() when running on Medusa.
Can't use the running_on_sim flag for this as that flag impacts too
many other things that make it fail for us.

Signed-off-by: Jes Sorensen <jes@sgi.com>
xen/arch/ia64/xen/xensetup.c

index 413ae033f2bb99d567d51d869d06b816f7adc56f..d40976b46ded7357262df244303fcb3a181fc773 100644 (file)
@@ -29,6 +29,7 @@
 #include <xen/softirq.h>
 #include <xen/rcupdate.h>
 #include <acm/acm_hooks.h>
+#include <asm/sn/simulator.h>
 
 unsigned long xenheap_phys_end, total_pages;
 
@@ -553,7 +554,7 @@ printk("num_online_cpus=%d, max_cpus=%d\n",num_online_cpus(),max_cpus);
                        0) != 0)
         panic("Could not set up DOM0 guest OS\n");
 
-    if (!running_on_sim)  // slow on ski and pages are pre-initialized to zero
+    if (!running_on_sim && !IS_MEDUSA())  // slow on ski and pages are pre-initialized to zero
        scrub_heap_pages();
 
     init_trace_bufs();